# 拆分字符串
def divide_str(str):
  str_list = list(str)
  return str_list

# 统计输入的字符串中大小写字母、数字、符号的数量
def frequence():
  str = input("请输入字符串：")
  # 定义字典
  str_dic = {"numbers": 0, "U_alpha": 0, "L_alpha": 0, "symbol": 0}
  for s in str:
    # 统计字母
    if s.isdigit():
      str_dic["numbers"] += 1
    elif s.isupper():
      str_dic["U_alpha"] += 1
    elif s.islower():
      str_dic["L_alpha"] += 1
    else:
      str_dic["symbol"] += 1
  return str_dic

# 调用函数
print(frequence())










